package com.devops.service;

import com.devops.entity.req.CmdReq;
import com.devops.entity.req.SshInfo;
import com.devops.utils.error.ReturnErrorException;
import com.jcraft.jsch.JSchException;

import java.io.IOException;
import java.util.List;

public interface SshService {

    List<SshInfo> getSshConnect() throws ReturnErrorException;

    String SshConnect(SshInfo sshInfo) throws ReturnErrorException;

    SshInfo getSshConnect(String hostIp) throws ReturnErrorException;

    void deleteConnect(String hostIp) throws ReturnErrorException;

    String cmd(CmdReq cmdReq) throws Exception;

    void cmd(String hostIp, String cmd) throws Exception;

    void sftp(String hostIp, String resourceFile, String dir) throws Exception;

    void shell(String hostIp, String fileName) throws Exception;
    
}
